<template>
	<view>
		<view class="tops contenr">
			<image src="../static/img/BGTN.png" mode="aspectFit" class="images" @click="goUrls"></image>
		</view>
		<view class="ImagesText dis dis5 dis1 dis2" v-if="isSet==1">
			<text>造作起来没关系</text>
			<text>点击记录立刻拯救自己</text>
		</view>
		<view v-if="islogin">
			<log @fnnc = "fnnc"></log>
		</view>
		
	</view>
</template>

<script>
	let app = getApp().globalData;
	import log from '@/components/login.vue';
	export default {
		/*
		isShow:显示图片的标识，
		isSet:显示文字的标识,1显示2不显示
		*/
	   components:{
		 log  
	   },
		props: ["isClass", "isShow", "isSet",],
		data() {
			return {
			islogin:false
			};
		},
		methods: {
			goUrls() {
			let userInfo = uni.getStorageSync('userInfo');
			let that =this;
			if (!userInfo) {
				
				that.islogin=true
				console.log('没有登录');
				return
			}
				uni.navigateTo({
					url: '/second/me/record/record'
				})
			},
			fnnc(data){
				console.log('data',data)
				app.user = data.data;
				this.islogin = false;
				// this.$emit('yangs',data);
				if(data.isLogin){
					uni.reLaunch({
						url:'/pages/appraisal/appraisal'
					})
				}
				
			}
		},
		
	}
</script>

<style lang="scss" scoped>
	@import "../common/css/flex.css";
	@import "../common/css/index.scss";
	.tops {
		width: 100%;
		height: 247upx;
		// margin-bottom: 80upx;
		.images {
			width: 642upx;
			height: 247upx;
		}
	}
	.ImagesText{
		width: 100%;
		height: 80upx;
		margin-bottom: 80upx;
		font-size: 28upx;
		font-family: $typeface1;
		font-weight: 400;
		color: #999999;
	}
</style>
